<?php

namespace App\Modules\Home\Models;


use Illuminate\Database\Eloquent\Model;

/**
 * Class Task 任务
 * @package App\Modules\Task\Models
 */
class FoodsCategories extends Model
{
    protected $table = 'foods_categories';

    protected $fillable = ['id','name', 'img', 'created_at', 'updated_at', 'status'];

    public static function getAll() {
        return self::where('status',1)->get();
    }
}